package com.have.blog.admin.service;

import com.have.blog.admin.service.hystrix.SystemConfigFeignHystrix;
import com.have.blog.base.dto.SystemConfigDto;
import com.have.blog.base.wrapper.Wrapper;
import com.have.blog.config.configs.feign.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;


@FeignClient(name = "blog-admin", configuration = FeignConfiguration.class, fallback = SystemConfigFeignHystrix.class)
public interface SystemConfigFeignApi {

    @GetMapping(value = "/system/getConfig")
    Wrapper<SystemConfigDto> getSystemConfig();
}
